//
//  CollectionViewCell.m
//  objective_c_language
//
//  Created by 王玉龙 on 2018/6/5.
//  Copyright © 2018年 longlong. All rights reserved.
//

#import "CollectionViewCell.h"
#import <Masonry.h>

@implementation CollectionViewCell


- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    
    if (self)
    {
        [self.contentView addSubview:self.textLable];
        [self.textLable mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.bottom.right.mas_equalTo(0);
            make.height.mas_equalTo(20);
            
        }];
    }
    return self;
}






- (UILabel *)textLable
{
    if (_textLable == nil)
    {
        UILabel *lable = [[UILabel alloc] init];
        lable.textColor = COLOR_VALUE(0x333333, 1);
        lable.font = [UIFont systemFontOfSize:16];
        
        _textLable = lable;
    }
    return _textLable;
}


@end
